export default {
	initEvent() {
		document.getElementById("add-div-close-icon").addEventListener("click", function() {
			this.parentNode.style.display = "none"
			document.getElementById("addInput").value = ""
		})
		document.getElementById("add-div-close-btn").addEventListener("click", function() {
			this.parentNode.parentNode.style.display = "none"
			document.getElementById("addInput").value = ""
		})

		document.getElementById("avatar-div").addEventListener("mouseenter", () => {
			document.getElementById("user-div").style.display = "block"
		})

		document.getElementById("user-div").addEventListener("mouseleave", () => {
			document.getElementById("user-div").style.display = "none"
		})

	}
}